package org.example.musicserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.musicserver.Request.UserRequest;
import org.example.musicserver.common.Result;
import org.example.musicserver.entity.User;

import java.util.List;

public interface UserService extends IService<User> {
    Result loginCheck(String name, String password);
    Result getAllUser(String name);
    Result updateUserMsg(UserRequest updateRequest);
    Result getUserMsg(Integer id);
    Result deleteUser(Integer id);
    Result deleteUsers(List<Integer> userIds);
    Result addUser(UserRequest registryRequest);

    Result registerService(String name, String password);
}
